package pers.zc.activiti.aop.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import pers.zc.activiti.aop.demo.*;
import pers.zc.activiti.aop.testDemo.AopDemo;

/**
 * @description
 * @Author Lin FuYuan
 * @date 2020/6/9
 */
@RestController
@RequestMapping("/aopTest")
public class AopTestController {


    @Autowired
    private Config conifg;
    @Autowired
    private TestOne testOne;
    @Autowired
    private TestTwo testTwo;
    @Autowired
    private TestThree testThree;
    @Autowired
    private TestFour testFour;
    @GetMapping("aop")
    public void test(@RequestParam Integer n){
        testOne.test();
        testThree.test();
        testFour.test();
        testTwo.test();

        System.out.println(AopDemo.map);
    }
}
